package com.itheima.reggie.service;

import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.Page;
import com.itheima.reggie.entity.R;
import com.itheima.reggie.entity.Setmeal;
import com.itheima.reggie.entity.dto.DishDto;
import com.itheima.reggie.entity.dto.SetmealDishDto;
import com.itheima.reggie.entity.dto.SetmealDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface SetmealService {

    void save(SetmealDto setmealDto);

    R<Page<SetmealDto>> findByPage(Integer page, Integer pageSize, String name);

    void deleteByIds(List<Long> ids);

    void changeStatus(Integer status, List<Long> ids);

    void update(SetmealDto setmealDto);

    R<SetmealDto> findById(Long setmealId);

    List<Setmeal> list(Long categoryId, Integer status);

    R<List<SetmealDishDto>> findBySId(Long id);
}
